/*--------------------------------------------------------------
 * File: demo13.c 编码类型：C语言  UTF-8
 * Author WRS (1352509846@qq.com)
 * 功能: 判断用户输入的是奇数还是偶数
 * Version 0.1
 * Date 2021-12-26 
 * 
 * @copyright Copyright (c) 2021
 * 
----------------------------------------------------------------*/
#include <stdio.h>

int main(int argc, char const *argv[])
{
    int num = 0;
    printf("请输入一个数：");
    scanf("%d",&num);

    if(num % 2 == 0)
    {
        printf("这个数是偶数\n");
    }
    else
    {
        printf("这个数是奇数\n");
    }
    return 0;
}



